<?php /* Smarty version Smarty-3.0.8, created on 2011-11-26 05:27:48
         compiled from "./templates\_customRecommend.tpl" */ ?>
<?php /*%%SmartyHeaderCode:204234ed078d4e90ec0-05726051%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '8e13d898822acc384b979e90fc972a3f4bbf91eb' => 
    array (
      0 => './templates\\_customRecommend.tpl',
      1 => 1322285267,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '204234ed078d4e90ec0-05726051',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<?php if (!is_callable('smarty_modifier_truncate')) include './common/libs/plugins\modifier.truncate.php';
if (!is_callable('smarty_function_cycle')) include './common/libs/plugins\function.cycle.php';
?><div id="customblock">
    <?php unset($_smarty_tpl->tpl_vars['smarty']->value['section']['firstBlock']);
$_smarty_tpl->tpl_vars['smarty']->value['section']['firstBlock']['loop'] = is_array($_loop=$_smarty_tpl->getVariable('block0')->value) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']['firstBlock']['show'] = (bool)true;
$_smarty_tpl->tpl_vars['smarty']->value['section']['firstBlock']['name'] = 'firstBlock';
$_smarty_tpl->tpl_vars['smarty']->value['section']['firstBlock']['max'] = (int)1;
$_smarty_tpl->tpl_vars['smarty']->value['section']['firstBlock']['step'] = ((int)1) == 0 ? 1 : (int)1;
$_smarty_tpl->tpl_vars['smarty']->value['section']['firstBlock']['start'] = (int)0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['firstBlock']['max'] < 0)
    $_smarty_tpl->tpl_vars['smarty']->value['section']['firstBlock']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['firstBlock']['loop'];
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['firstBlock']['start'] < 0)
    $_smarty_tpl->tpl_vars['smarty']->value['section']['firstBlock']['start'] = max($_smarty_tpl->tpl_vars['smarty']->value['section']['firstBlock']['step'] > 0 ? 0 : -1, $_smarty_tpl->tpl_vars['smarty']->value['section']['firstBlock']['loop'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['firstBlock']['start']);
else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['firstBlock']['start'] = min($_smarty_tpl->tpl_vars['smarty']->value['section']['firstBlock']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['firstBlock']['step'] > 0 ? $_smarty_tpl->tpl_vars['smarty']->value['section']['firstBlock']['loop'] : $_smarty_tpl->tpl_vars['smarty']->value['section']['firstBlock']['loop']-1);
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['firstBlock']['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']['firstBlock']['total'] = min(ceil(($_smarty_tpl->tpl_vars['smarty']->value['section']['firstBlock']['step'] > 0 ? $_smarty_tpl->tpl_vars['smarty']->value['section']['firstBlock']['loop'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['firstBlock']['start'] : $_smarty_tpl->tpl_vars['smarty']->value['section']['firstBlock']['start']+1)/abs($_smarty_tpl->tpl_vars['smarty']->value['section']['firstBlock']['step'])), $_smarty_tpl->tpl_vars['smarty']->value['section']['firstBlock']['max']);
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['firstBlock']['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']['firstBlock']['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['firstBlock']['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['firstBlock']['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['firstBlock']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['firstBlock']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['firstBlock']['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['firstBlock']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['firstBlock']['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['firstBlock']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['firstBlock']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['firstBlock']['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']['firstBlock']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['firstBlock']['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['firstBlock']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['firstBlock']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['firstBlock']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['firstBlock']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['firstBlock']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['firstBlock']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['firstBlock']['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']['firstBlock']['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']['firstBlock']['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']['firstBlock']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['firstBlock']['total']);
?> <!-- 二维数组 只有一个元素 -->
    <div id="title"><div class="customBlockTitle" style="margin-left:4px;"><span><?php echo smarty_modifier_truncate((($tmp = @$_smarty_tpl->getVariable('block0')->value[$_smarty_tpl->getVariable('smarty')->value['section']['firstBlock']['index']]['blockTitle'])===null||$tmp==='' ? '本周最热企业Top10' : $tmp),15,'..');?>
</span></div></div>
    <div>
        <div style="float:left;width:110px;margin:5px;">
            <div><span><?php echo smarty_modifier_truncate((($tmp = @$_smarty_tpl->getVariable('block0')->value[$_smarty_tpl->getVariable('smarty')->value['section']['firstBlock']['index']]['firmName'])===null||$tmp==='' ? '企业名称' : $tmp),10,'..');?>
</span></div>                                   
        </div>
        <div style="float:left;width:10px;">&nbsp;</div>  <!-- 占空 -->
        <div style="float:left;width:80px;margin:5px;text-align:center;"><?php echo smarty_modifier_truncate((($tmp = @$_smarty_tpl->getVariable('block0')->value[$_smarty_tpl->getVariable('smarty')->value['section']['firstBlock']['index']]['itemTitle'])===null||$tmp==='' ? '本周浏览量(次)' : $tmp),8,'..');?>
</div> 
        <div id="clear"></div>
    <?php endfor; endif; ?> 
        <ul>  
        <?php unset($_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']);
$_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['loop'] = is_array($_loop=$_smarty_tpl->getVariable('customblock0')->value) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['name'] = 'thisWeek';
$_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['show'] = (bool)true;
$_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['max'] = (int)10;
$_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['step'] = ((int)1) == 0 ? 1 : (int)1;
$_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['start'] = (int)0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['max'] < 0)
    $_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['loop'];
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['start'] < 0)
    $_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['start'] = max($_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['step'] > 0 ? 0 : -1, $_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['loop'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['start']);
else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['start'] = min($_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['step'] > 0 ? $_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['loop'] : $_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['loop']-1);
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['total'] = min(ceil(($_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['step'] > 0 ? $_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['loop'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['start'] : $_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['start']+1)/abs($_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['step'])), $_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['max']);
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['total']);
?>
            <li style="background-color:<?php echo smarty_function_cycle(array('name'=>'color','values'=>'#fff,#fff','advance'=>true),$_smarty_tpl);?>
">
                <div id="leftnum" style="width:20px;"><span><?php echo ((($tmp = @$_smarty_tpl->getVariable('smarty')->value['section']['thisWeek']['iteration'])===null||$tmp==='' ? '1' : $tmp)).('.');?>
&nbsp;&nbsp;</span></div>
                <div id="firmlogo" style="margin-top:6px;"><a href="<?php echo $_smarty_tpl->getVariable('customblock0')->value[$_smarty_tpl->getVariable('smarty')->value['section']['thisWeek']['index']]['linkAddress'];?>
"><img src="<?php echo $_smarty_tpl->getVariable('customblock0')->value[$_smarty_tpl->getVariable('smarty')->value['section']['thisWeek']['index']]['imageName'];?>
" width="<?php echo (($tmp = @$_smarty_tpl->getVariable('customblock0')->value[$_smarty_tpl->getVariable('smarty')->value['section']['thisWeek']['index']]['imageWidth'])===null||$tmp==='' ? '20' : $tmp);?>
" height="<?php echo (($tmp = @$_smarty_tpl->getVariable('customblock0')->value[$_smarty_tpl->getVariable('smarty')->value['section']['thisWeek']['index']]['imageHeight'])===null||$tmp==='' ? '20' : $tmp);?>
"/></a></div> 
                <div id="firmname" style="width:100px;"><a href="<?php echo $_smarty_tpl->getVariable('customblock0')->value[$_smarty_tpl->getVariable('smarty')->value['section']['thisWeek']['index']]['linkAddress'];?>
"><span>&nbsp;&nbsp;<?php echo smarty_modifier_truncate((($tmp = @$_smarty_tpl->getVariable('customblock0')->value[$_smarty_tpl->getVariable('smarty')->value['section']['thisWeek']['index']]['firmName'])===null||$tmp==='' ? 'Google' : $tmp),10,'……',false);?>
</span></a></div>
                <div id="rightblock"><?php echo smarty_modifier_truncate((($tmp = @$_smarty_tpl->getVariable('customblock0')->value[$_smarty_tpl->getVariable('smarty')->value['section']['thisWeek']['index']]['extraData'])===null||$tmp==='' ? '1000' : $tmp),10,"..");?>
</div>
                <div id="clear"></div>                                                                      
            </li> 
        <?php endfor; else: ?>
        <?php endif; ?>
        </ul>
    </div>
    <div id="title"><div class="moreContentTail"><a href="<?php echo (($tmp = @$_smarty_tpl->getVariable('customBlock0More')->value)===null||$tmp==='' ? '#' : $tmp);?>
"><span>更多内容</span></a></div></div>
</div>